<%@ page language="java" pageEncoding="UTF-8"%>
<div class="container" ng-controller="SoftwareCreateController">
	<div>
		<h3 style="color: #40AA53;">
			发布软件
		</h3>
		<hr />
		<div class="pull-right alert alert-info" ng-show="false">
			提交的软件经过管理员审核后会被添加到软件库中。<br/>
			<ul>
				<li>
					添加的软件首先必须是开源的
				</li>
				<li>
					其次是尚未被收录的
				</li>
			</ul>
		</div>
		
		<div class="col-lg-8">
			<form role="form" callback="save" validate>
				<div class="form-group">
					<label>
						软件名称
					</label>
					<input type="text" class="form-control" placeholder="请输入名称" name="name" ng-model="software.name" rule="required;">
				</div>
				<div class="form-group">
					<label>
						软件主页
					</label>
					<input type="text" class="form-control" name="home_page" ng-model="software.home_page">
				</div>
				<div class="form-group">
					<label>
						文档地址
					</label>
					<input type="text" class="form-control" name="doc_url" ng-model="software.doc_url">
				</div>
				<div class="form-group">
					<label>
						下载地址
					</label>
					<input type="text" class="form-control" name="download_url" ng-model="software.download_url">
				</div>
				<div class="form-group">
					<label>
						软件介绍
					</label>
					<textarea name="introduce" rule="required;" ng-model="software.introduce" editor-width="100%;" delay="0" editor></textarea>
				</div>
				<button type="submit" class="btn btn-success btn-sm">
					<i class="glyphicon glyphicon-ok-sign"></i> 发布软件
				</button>
			</form>
		</div>
	</div>
</div>